package com.ruoyi.kk.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kk.activity.mapper.KkHikingActivityMapper;
import com.ruoyi.kk.activity.domain.KkHikingActivity;
import com.ruoyi.kk.activity.service.IKkHikingActivityService;

/**
 * 徒步活动信息Service业务层处理
 * 
 * @author kk
 * @date 2025-06-10
 */
@Service
public class KkHikingActivityServiceImpl implements IKkHikingActivityService 
{
    @Autowired
    private KkHikingActivityMapper kkHikingActivityMapper;

    /**
     * 查询徒步活动信息
     * 
     * @param id 徒步活动信息主键
     * @return 徒步活动信息
     */
    @Override
    public KkHikingActivity selectKkHikingActivityById(Long id)
    {
        return kkHikingActivityMapper.selectKkHikingActivityById(id);
    }

    /**
     * 查询徒步活动信息列表
     * 
     * @param kkHikingActivity 徒步活动信息
     * @return 徒步活动信息
     */
    @Override
    public List<KkHikingActivity> selectKkHikingActivityList(KkHikingActivity kkHikingActivity)
    {
        return kkHikingActivityMapper.selectKkHikingActivityList(kkHikingActivity);
    }

    /**
     * 新增徒步活动信息
     * 
     * @param kkHikingActivity 徒步活动信息
     * @return 结果
     */
    @Override
    public int insertKkHikingActivity(KkHikingActivity kkHikingActivity)
    {
        return kkHikingActivityMapper.insertKkHikingActivity(kkHikingActivity);
    }

    /**
     * 修改徒步活动信息
     * 
     * @param kkHikingActivity 徒步活动信息
     * @return 结果
     */
    @Override
    public int updateKkHikingActivity(KkHikingActivity kkHikingActivity)
    {
        return kkHikingActivityMapper.updateKkHikingActivity(kkHikingActivity);
    }

    /**
     * 批量删除徒步活动信息
     * 
     * @param ids 需要删除的徒步活动信息主键
     * @return 结果
     */
    @Override
    public int deleteKkHikingActivityByIds(Long[] ids)
    {
        return kkHikingActivityMapper.deleteKkHikingActivityByIds(ids);
    }

    /**
     * 删除徒步活动信息信息
     * 
     * @param id 徒步活动信息主键
     * @return 结果
     */
    @Override
    public int deleteKkHikingActivityById(Long id)
    {
        return kkHikingActivityMapper.deleteKkHikingActivityById(id);
    }
}
